package vue;

import java.util.HashMap;
import java.util.Timer;
import java.util.TimerTask;

import model.MainModel;
import model.MonTimer;

public class MainVue extends TimerTask {
	
	Timer mainTimer = new Timer();
	private HashMap<String,Object> report;
	Fenetre f;
	static int cellSize = 5;
	
	
	public MainVue(MainModel model, int _periodInMilliS){

		report = new HashMap<String, Object>();
		f = new Fenetre(model, report);
		mainTimer.schedule(this, 0, _periodInMilliS);
	}
	
	
	@Override
	public void run() {
		f.refresh();
	}
}